package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionMapper {
    public Set<Permission> findByRoleId(Integer roleId);

    Page<Permission> findByCondition(String queryString);

    void update(Permission permission);

    void add(Permission permission);

    void delete(Integer id);

    List<Permission> findAll();

    List<Permission> findByPerIds(Integer id);
}
